<script lang="ts">
	export let imgSrc: string;
	export let alt: string;
	export let classes: string;
  export let bgColorClass: string = "bg-[#D8D8D8]";
</script>

<div class="hidden min-w-0 m-0">
	<img src={imgSrc} {alt} loading="eager" />
</div>
<div
	class="{bgColorClass} {classes}"
	style="background-image: url({imgSrc})"
>
	<slot />
</div>
